<?php      				  
require '../../../../zb_system/function/c_system_base.php';    	  				 
require '../../../../zb_system/function/c_system_admin.php';    				    
$zbp->Load();       	  	 
$action='root';     	  		  
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}    		 		   
if (!$zbp->CheckPlugin('ytecn_pjax')) {$zbp->ShowError(48);die();}      	 	 	 
$act = GetVars("act", "GET");    		 		  	
if ($act === "save") {    	 		  	 
    CheckIsRefererValid();    	 	 	 		
    if (isset($_POST['ytecn'])) {    				 			
        foreach ($_POST['ytecn'] as $key => $val) {       		 		
            $zbp->Config('ytecn_pjax')->$key = $val;    	 			 	 
        }     	  	   
        $zbp->SaveConfig('ytecn_pjax');     	 	 	  
        $zbp->SetHint('good', '参数已保存');    	  			 	
    }       	 		 
    Redirect('./seo.php');    					   
}    	 	  	 	
    		     	
$blogtitle=$zbp->themeapp->name;    	    	 	
require $blogpath . 'zb_system/admin/admin_header.php';      		 	  
require $blogpath . 'zb_system/admin/admin_top.php';     				 	 
?>
<div id="divMain">
    <div class="divHeader"><?php echo $blogtitle;?></div>
    <div class="SubMenu">
    <?php echo ytecn_pjax_SubMenu('seo'); ?>
    </div>
    <div id="divMain2">
        <form method="post" action="?act=save">
            <input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCSRFToken();?>">
            <table border="1" class="tableFull tableBorder">
                <tr>
                    <th class="td30"><p align='left'><b>标题</b><br><span class='note'></span></p></th>
                    <th>说明</th>
                </tr>
                <tr>
                    <td class="td30"><p align='left'><b>SEO配置</b></p></td>
                    <td><input type="text" id="seoon" name="ytecn[seoon]" class="checkbox" value="<?php echo (int)($zbp->Config('ytecn_pjax')->seoon);?>" ></td>
                </tr>
                <tr>
                    <td class="td30"><p align='left'><b>首页标题</b></p></td>
                    <td><input type="text"  name="ytecn[seoname]" value="<?php echo htmlspecialchars($zbp->Config('ytecn_pjax')->seoname);?>"/></td>
                </tr>

                <tr>
                    <td class="td30"><p align='left'><b>首页关键词</b></p></td>
                    <td><input type="text"  name="ytecn[seokey]" value="<?php echo htmlspecialchars($zbp->Config('ytecn_pjax')->seokey);?>"/></td>
                </tr>
                <tr>
                    <td class="td30"><p align='left'><b>首页描述</b></p></td>
                    <td><input type="text"  name="ytecn[seodes]" value="<?php echo htmlspecialchars($zbp->Config('ytecn_pjax')->seodes);?>"/></td></td>
                </tr>
                <tr>
                    <td class="td30"><p align='left'><b>是否高度自定义</b></p></td>
                    <td><input type="text" id="seoon" name="ytecn[seozdy]" class="checkbox" value="<?php echo (int)($zbp->Config('ytecn_pjax')->seozdy);?>" ></td>
                </tr>

                <tr>
                    <td class="td30"></td>
                    <td>
                    <input name="" type="Submit" class="button" value="保存" />
                    </td>
                </tr>
            </table>
        </form>

        
    </div>
</div>
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';   	    	 	    	    	    			    			 			     			  	  
RunTime(); 			     	  	  	  	 				         			
?>